package com.qupai.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 购物车
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ShoppingCartVO implements Serializable {

    private Long id;

    //名称
    private String name;

    //用户id
    private Long userId;

    //奖品id
    private Long prizesId;

    //活动id
    private Long activitiesId;

    //组织id
    private Long organizationsId;

    //学院id
    private Long collegesId;

    //数量
    private Long number;

    //金额
    private BigDecimal amount;

    //图片
    private String image;

    //描述
    @Schema(description = "描述")
    private String description;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
